﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace OneCard.Face8280Module.Entities.DbModels
{
    /// <summary>
    /// 表示一个门禁打卡/系统记录
    ///</summary>
    [SugarTable("CardRecord")]
    public class CardRecord
    {
        /// <summary>
        ///  记录唯一ID
        ///</summary>
        [SugarColumn(ColumnName = "CardRecordID", IsPrimaryKey = true, IsIdentity = true)]
        public long CardRecordID { get; set; }
        /// <summary>
        ///  人员ID
        ///</summary>
        [SugarColumn(ColumnName = "PersonnelID")]
        public int PersonnelID { get; set; }
        /// <summary>
        ///  设备ID
        ///</summary>
        [SugarColumn(ColumnName = "EquptID")]
        public int EquptID { get; set; }
        /// <summary>
        ///  记录类型
        ///</summary>
        [SugarColumn(ColumnName = "CodeIndex")]
        public int CodeIndex { get; set; }
        /// <summary>
        ///  记录时间 OADate
        ///</summary>
        [SugarColumn(ColumnName = "DataTime")]
        public decimal DataTime { get; set; }
        /// <summary>
        ///  记录卡号
        ///</summary>
        [SugarColumn(ColumnName = "CardData")]
        public long CardData { get; set; }
        /// <summary>
        ///  记录端口号  1-入门;2-出门;
        ///</summary>
        [SugarColumn(ColumnName = "PortNum")]
        public byte PortNum { get; set; }
        /// <summary>
        ///  图片ID
        ///</summary>
        [SugarColumn(ColumnName = "PictureID")]
        public int PictureID { get; set; }
        /// <summary>
        ///  人员名称
        ///</summary>
        [SugarColumn(ColumnName = "PName")]
        public string PName { get; set; }
        /// <summary>
        ///  人员编号
        ///</summary>
        [SugarColumn(ColumnName = "PCode")]
        public string PCode { get; set; }
        /// <summary>
        ///  部门名称
        ///</summary>
        [SugarColumn(ColumnName = "DeptName")]
        public string DeptName { get; set; }
        /// <summary>
        ///  设备名称
        ///</summary>
        [SugarColumn(ColumnName = "EquptName")]
        public string EquptName { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "LctnName")]
        public string LctnName { get; set; }
        /// <summary>
        ///  安装位置名称
        ///</summary>
        [SugarColumn(ColumnName = "MultiEvent")]
        public byte MultiEvent { get; set; }
        /// <summary>
        ///  记录序号
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "RecordSerialNumber")]
        public int? RecordSerialNumber { get; set; }
        /// <summary>
        ///  体温 用整形存储，显示时除100，例如37.5，存储为3750
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "bodyTemperature")]
        public int? BodyTemperature { get; set; }
    }
}
